package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.mapper.EmployeeMapper;
import com.itheima.reggie.service.EmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ：sean
 * @date ：Created in 2022/5/16
 * @description ：
 * 如果基于Mp，业务实现类需要基础应该Mp提供父类
 * @service
 * @version: 1.0
 */
@Service
@Slf4j
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee>
	implements EmployeeService {
	// 我在MP扩展一个自己的业务方法
	@Override
	public void mySave(Employee employee, HttpServletRequest request) {
		Thread thread = Thread.currentThread();
		log.info("[我自己的业务方法]: 当前线程ID:{}",thread.getId());
		log.info("[我自己的业务方法]:{}",employee);
	}
}
